<div class="sub-page">
    <h2>Welcome: <span class="red-text"><?php echo Yii::app()->user->name;?></span></h2>
    <div class="all-product">
        <div class="contact">
            <div class="ct-title">Account information</div>
            <form name="frm-update-customer" method="post" action="/shop/customer/edit">
            <div class="form-style marT20">
                <p>
                    <label>First Name:</label>
                    <span class="right-label"><input type="text" name="customer[firstname]" value="<?php echo $model['firstname'];?>" size="80"></span>
                </p>
                <p>
                    <label>Last Name:</label>
                    <span class="right-label"><input type="text" name="customer[lastname]" value="<?php echo $model['lastname'];?>" size="80"></span>
                </p>
                <p>
                    <label>Email:</label>
                    <span class="right-label"><input type="text" name="customer[email]" value="<?php echo $model['email'];?>" size="80"></span>
                </p>
                <p>
                    <label>Password:</label>
                    <span class="right-label"><input type="password" name="customer[password]" value="" size="80"></span>
                </p>
                <p>
                    <label>Country:</label>
                    <span class="right-label">
                    	<select name="customer[country_id]" class="span12 chosen" data-placeholder="Choose a Country" style="width:304px">
							<option value="">--Country--</option>
							<?php foreach($countryList as $country) {?>
								<option <?php if($country->country_id == $model['country_id']) echo 'selected=selected';?> value="<?php echo $country->country_id;?>"><?php echo $country->name?></option>
							<?php }
							?>
						</select>
                    </span>
                </p>
                <p>
                    <label>Address:</label>
                    <span class="right-label"><input type="text" name="customer[street]" value="<?php echo $model['street'];?>" size="80"></span>
                </p>
                <p>
                    <label>Town / City:</label>
                    <span class="right-label"><input type="text" name="customer[city]" value="<?php echo $model['city'];?>" size="80"></span>
                </p>
                <p>
                    <label>State:</label>
                    <span class="right-label"><input type="text" name="customer[state]" value="<?php echo $model['state'];?>" size="80"></span>
                </p>
                <p>
                    <label>Zip:</label>
                    <span class="right-label"><input type="text" name="customer[zipcode]" value="<?php echo $model['zipcode'];?>" size="80"></span>
                </p>
                <p>
                    <label>Phone:</label>
                    <span class="right-label"><input type="text" name="customer[phone]" value="<?php echo $model['phone'];?>" size="80"></span>
                </p>
                <p>
                    <label>&nbsp;</label>
                    <input class="red-button" type="submit" name="edit" value="Edit">
                </p>
            </div>
            </form>
        </div>
	</div>
</div>